package com.xzj.spring.config;

import com.xzj.spring.annotation.Bean;
import com.xzj.spring.annotation.ComponentScan;
import com.xzj.spring.server.AServer;

/**
 * @ProjectName: SpringDemo
 * @Package: com.xzj
 * @ClassName: MyConfig
 * @Author: xzj
 * @Description:
 * @Date: 2022/7/8 10:08
 * @Version: 1.0
 */
@ComponentScan("com.xzj")
public class MyConfig {


    @Bean({"aServer1","aServer2"})
//    @Scope("prototype")
    public AServer aServer1(){

        return new AServer();
    }

}
